package org.jeecg.modules.youlgl.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.workflow.vo.MyApplyVO;
import org.jeecg.modules.workflow.vo.MyDoneVO;
import org.jeecg.modules.workflow.vo.MyTodoVO;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 油料管理
 * @Author: jeecg-boot
 * @Date:   2020-06-16
 * @Version: V1.0
 */
@Data
@TableName("hq_ylgl")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hq_ylgl对象", description="油料管理")
public class HqYlgl implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;

//	/**审批人*/
//	@Excel(name = "审批人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
//	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
//    @ApiModelProperty(value = "审批人")
//    private String shenprId;

	/**车牌号*/
	@Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private String chepnu;
	/**油品号*/
	@Excel(name = "油品号", width = 15,dicCode = "youph")
    @ApiModelProperty(value = "油品号")
    @Dict(dicCode = "youph")
    private String youph;
	/**申请升数*/
	@Excel(name = "申请升数", width = 15)
    @ApiModelProperty(value = "申请升数")
    private Double gas;
	/**上次申请日期*/
	@Excel(name = "上次申请日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "上次申请日期")
    private Date lastapplydate;
	/**上次申请升数*/
	@Excel(name = "上次申请升数", width = 15)
    @ApiModelProperty(value = "上次申请升数")
    private Double lastapplygas;

    private String processInstanceId;

    @Dict(dicCode = "auditStatus")
    private Integer status;

    private String taskId;

    @TableField(exist = false)
    private MyApplyVO myApplyVO;
    @TableField(exist = false)
    private MyTodoVO myTodoVO;
    @TableField(exist = false)
    private MyDoneVO myDoneVO;

    @TableField(exist = false)
    private Date endTime;
    @TableField(exist = false)
    private String auditStatus;
    @TableField(exist = false)

    @Dict(dicCode = "processStatus")
    private Integer processStatus;

    @TableField(exist = false)
    private String taskName;
    @TableField(exist = false)
    private String taskMsg;
    @TableField(exist = false)
    private String currtTaskId;

    @Dict(dicCode = "carType")
    // 车辆类型
    String carType;
    /**司机*/
    @Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机")
    private java.lang.String sij;
    /**联系方式*/
    @Excel(name = "联系方式", width = 15)
    @ApiModelProperty(value = "联系方式")
    private java.lang.String sijlxfs;
    /**上次加油公里数*/
    @Excel(name = "上次加油公里数", width = 15)
    @ApiModelProperty(value = "上次加油公里数")
    private java.lang.String shangcjypldsgls;
    /**上次加油公里数*/
    @TableField(exist = false)
    private java.lang.String bencjypldsgls;
    /**理论油耗*/
    @Excel(name = "理论油耗", width = 15)
    @ApiModelProperty(value = "理论油耗")
    private java.lang.String lilyh;

    @Dict(dicCode = "car_xiangxxh")
    String carXiangxxh;

    @TableField(exist = false)
    String assignName;
    @TableField(exist = false)
    private String shenpsj;
}
